package com.cn.serverline.lineicp.productionLine.param;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 工步新增参数
 *
 * @author Gmr
 * @since 2024/7/31
 */
@Data
public class ProcessStepsAddParam {

	/**
	 * 工序ID
	 */
	@ApiModelProperty(value = "工序ID", required = true)
	@ChineseDescription("工序ID")
	@JsonSerialize(using= ToStringSerializer.class)
	@NotNull(message = "工序ID不能为空")
	private Long productionProcessesId;

	/**
	 * 工步序号
	 */
	@ApiModelProperty(value = "工步序号", required = true)
	@ChineseDescription("工步序号")
	@NotBlank(message = "工步序号不能为空")
	private String stepNumber;

	/**
	 * 工步名称
	 */
	@ApiModelProperty(value = "工步名称", required = true)
	@ChineseDescription("工步名称")
	@NotBlank(message = "工步名称不能为空")
	private String stepName;

	/**
	 * 工步内容
	 */
	@ApiModelProperty(value = "工步内容", required = true)
	@ChineseDescription("工步内容")
	@NotBlank(message = "工步内容不能为空")
	private String stepContent;

	/**
	 * 排序码
	 */
	@ApiModelProperty(value = "排序码", required = true)
	@ChineseDescription("排序码")
	@JsonSerialize(using= ToStringSerializer.class)
	@NotNull(message = "排序码不能为空")
	private Long sort;
}
